home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / python / runtime.d / pycentral.rtupdate < prev    next >
Text File  |  2008-05-28  |  303b  |  15 lines

  1. #! /bin/sh -e
  2.  
  3. cmd="$1"
  4. oldruntime="$2"
  5. newruntime="$3"
  6.  
  7. [ "$cmd" = rtupdate ] || exit 0
  8.  
  9. if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1; then
  10.     pycentral updatedefault $oldruntime $newruntime
  11. else
  12.     echo >&2 "python or pycentral not found in $(basename $0) hook."
  13.     exit 1
  14. fi
  15.